Skip to content

[ZEPPELIN-6387] Fix WebSocket reconnection not reloading note in Angular UI#5129

Merged
tbonelee merged 3 commits intoapache:masterfrom
tbonelee:websocket-reconnection
Apr 5, 2026
Merged

[ZEPPELIN-6387] Fix WebSocket reconnection not reloading note in Angular UI#5129
tbonelee merged 3 commits intoapache:masterfrom
tbonelee:websocket-reconnection

Conversation

@tbonelee
Copy link
Copy Markdown
Contributor

What is this PR for?

Fixes an issue where WebSocket reconnection in the new Angular UI (zeppelin-web-angular) does not reload the current note, causing "Note is null" errors when attempting to run paragraphs after reconnection.

What type of PR is it?

Bug Fix

What is the Jira issue?

https://issues.apache.org/jira/browse/ZEPPELIN-6387

How should this be tested?

  1. Open any notebook in the new Angular UI.
  2. Trigger a WebSocket timeout by switching to another browser tab or window and leaving the Zeppelin tab in the background for a few minutes.
    • Even without interacting with the browser, you can confirm that the WebSocket has reconnected by checking the server logs.
  3. Allow the system to automatically reconnect.
  4. Try running any paragraph → It should fail before this PR and succeed after applying this PR.

Questions:

  • Does the license files need to update? No
  • Is there breaking changes for older versions? No
  • Does this needs documentation? No

Copy link
Copy Markdown
Contributor

@seung-00 seung-00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and looks fine to me.

if (connected) {
const { noteId, revisionId } = this.activatedRoute.snapshot.params;
if (!noteId) {
throw new Error('Query parameter `noteId` is required.');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: noteId looks like a path parameter.

@tbonelee tbonelee requested a review from jongyoul March 8, 2026 10:23
@tbonelee
Copy link
Copy Markdown
Contributor Author

tbonelee commented Apr 4, 2026

@jongyoul @ParkGyeongTae Could you help review this?

@tbonelee tbonelee merged commit 705110a into apache:master Apr 5, 2026
18 of 19 checks passed
tbonelee added a commit that referenced this pull request Apr 5, 2026
…lar UI

### What is this PR for?
Fixes an issue where WebSocket reconnection in the new Angular UI (zeppelin-web-angular) does not reload the current note, causing "Note is null" errors when attempting to run paragraphs after reconnection.

### What type of PR is it?
Bug Fix

### What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-6387

### How should this be tested?

1. Open any notebook in the new Angular UI.
2. Trigger a WebSocket timeout by switching to another browser tab or window and leaving the Zeppelin tab in the background for a few minutes.
   - Even without interacting with the browser, you can confirm that the WebSocket has reconnected by checking the server logs.
3. Allow the system to automatically reconnect.
4. Try running any paragraph → It should fail before this PR and succeed after applying this PR.

### Questions:
* Does the license files need to update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Closes #5129 from tbonelee/websocket-reconnection.

Signed-off-by: ChanHo Lee <chanholee@apache.org>
(cherry picked from commit 705110a)
Signed-off-by: ChanHo Lee <chanholee@apache.org>
@tbonelee
Copy link
Copy Markdown
Contributor Author

tbonelee commented Apr 5, 2026

Thanks! Merged into master and branch-0.12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants